﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class RetiroefFact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As RetiroefBE
        Dim tmpRetiroef As RetiroefBE = New RetiroefBE()
        Try
            With tmpRetiroef
                .Fecha = convertDTFromDb.convertDateTime(dr.Item("Fecha"))
                .Id = convertDTFromDb.convertInt32(dr.Item("Id"))
                .IdEmpresa = convertDTFromDb.ConvertShort(dr.Item("IdEmpresa"))
                .Importe = convertDTFromDb.ConvertDecimal(dr.Item("Importe"))
                .Usuario = convertDTFromDb.ConvertString(dr.Item("Usuario"))
            End With
            Return tmpRetiroef
        Catch ex As Exception
            Throw
        Finally
            tmpRetiroef = Nothing
        End Try
    End Function
End Class
